GXCheckStatus
QuickDraw GX sends theGXCheckStatus
message to mark a location in the communications process where a status check needs to be performed. You need to override theGXCheckStatus
message to check the status of your device. Your override of theGXCheckStatus
message must match the following formal declaration:
OSErr MyCheckStatus (Ptr data, long length, short statusType, Signature owner);
data
- A pointer to the data that you want to send with the status.
length
- The number of bytes in the data.
statusType
- The application-defined status type.
owner
- The ID of the message handler for which the
GXCheckStatus
message
is intended.- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
You can send theGXCheckStatus
message to mark the point in the imaging-communications process where you can check status information about the device.The default implementation of this message does nothing. You need to override this message to provide status checking for your device.
The message handler that sends the
GXCheckStatus
message sets thedata
,length
, andstatusType
parameters. You need to check theowner
parameter and only process the status check if it matches your signature; if not, you need to forward the message. Most message handlers call theGXGetDeviceStatus
message in response to theGXCheckStatus
message.SPECIAL CONSIDERATIONS
You can send theGXCheckStatus
message yourself to mark a place where you want to have a status check performed.If you process the status check in your override, you do not forward the
GXCheckStatus
message. If you do not handle the status check, you must forward the message.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. SEE ALSO
TheGXGetDeviceStatus
message is described in the next section.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help